// import ErrorPage from '@/components/exception/500'
import { Navigate, RouteObject } from "react-router-dom";

import ErrorPage from "@/components/exception/500";
// import Layout from "@/layout";
import Layout1 from "@/layouts/layout1";
import Login from "@/pages/login";

export const routes: RouteObject[] = [
    {
        path: "/user/login",
        Component: Login,
    },
    // {
    //   path: '/user/reset-password',
    //   Component: ResetPassword,
    // },
    {
        path: "/",
        element: <Navigate to="/dashboard" />,
    },
    // {
    //     path: "*",
    //     Component: Layout1,
    //     children: [],
    //     errorElement: <ErrorPage />,
    // },
    {
        path: "*",
        Component: Layout1,
        children: [],
        errorElement: <ErrorPage />,
    },
];
